package cn.blossoming.service.base.config;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableJpaRepositories(basePackages = "cn.blossoming.dao.repository")
@EntityScan(basePackages = "cn.blossoming.dao.domain", basePackageClasses = Jsr310JpaConverters.class)
@ComponentScan(basePackages = "cn.blossoming.service.*.impl")
@EnableAutoConfiguration
@EnableTransactionManagement
public class SpringConfiguration {
}
